<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>首页</h1>

<!--用户登录隐藏按钮-->
<div th:if="${session.loginUser==null}">
    <a th:href="@{/doLogin}">登录</a>
</div>

<p th:text="${msg}">hello</p>
<hr>

<div shiro:hasPermission="user:add">
    <a th:href="@{/user/add}">add</a> <br>
</div>
<div shiro:hasPermission="user:del">
    <a th:href="@{/user/del}">del</a> <br>
</div>

<a th:href="@{/user/select}">select</a>  <br>


</body>
</html>
